package com.mysoft.gfyx.clue.remoteservice;

import com.mysoft.framework.rpc.annotation.RemoteAction;
import com.mysoft.framework.rpc.annotation.RemoteService;
import com.mysoft.gfyx.clue.remoteservice.dto.AreaDto;
import com.mysoft.gfyx.clue.remoteservice.dto.ProvinceAndCityConditionDto;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@RemoteService(appCode = "4022", businessCode = "40220901", path = "/provinceAndCityPub")
public interface RemoteAreaService {
    @RemoteAction(value = "/getAllWithParent")
    List<AreaDto> getAllWithParent();

    @RemoteAction(value = "/getAll")
    List<AreaDto> getAll();

    @RemoteAction(value = "/getProvinceAndCity")
    List<AreaDto> getProvinceAndCity(@RequestBody ProvinceAndCityConditionDto conditionDto);

    @RemoteAction(value = "/getProvince")
    List<AreaDto> getProvince(@RequestBody ProvinceAndCityConditionDto conditionDto);

    @RemoteAction(value = "/getByCodes")
    List<AreaDto> getByCodes(@RequestBody ProvinceAndCityConditionDto conditionDto);
}
